<extend name="zh_cn:Public:base" />
<block name="title">
    <title>美住 - 住店客人</title>
</block>
<block name="extendHead">
    <link rel="stylesheet" type="text/css" href="/Public/dist/Home/common_control.css?rev=bdf8875f9e52f651ec877dc7073586ed">
    <link rel="stylesheet" type="text/css" media="all" href="__PUBLIC__/jslib/bootstrap-daterangepicker/daterangepicker.css" />
    <link rel="stylesheet" type="text/css" media="all" href="__PUBLIC__/jslib/datepicker/css/foundation-datepicker.css" />
	<link rel="stylesheet" type="text/css" href="/Public/dist/Home/CustomerPage/customer.css?rev=727b6cde9988a3bc790c1b6f676eb7a7">
</block>
<block name="document">
    <div id="doc" class="container-above-md" data-today="{:date('Y-m-d')}">
        <include file="zh_cn:Public:Include_control_navbar" navbar-menu-customer="active" />
        <div id="doc-body" class="row">
            <include file="zh_cn:Public:Include_setting_side" doc-side-customer="active" />
             <div id="doc-center">
                <div class="content-panel">
                    <div class="content-panel-header" id="filterHeaderTabContainer">
                        <include file="zh_cn:Public:Include_customer_tab" booking-tab-index="btn-primary" />
                    </div>
                </div>
                <div class="header-box">
                    <div class="content-panel-operation">
                        <!--<a class="btn-link" href="/Home/Customer/exportCustomerList?hotel={$currentHotel}&start={$startDate}&end={$endDate}&keys=''">导出表格</a>-->
                        <a class="btn-link" href="javascript:void(0);" data-toggle="modal" data-target="#derivedFormModal">导出表格</a>
                    </div>
                    <div class="guest">共&nbsp;<span class="guest-num text-accent"></span>&nbsp;客人</div>
                    <div class="border-box" id="datePickerContainer">
                        <div class="row">
                            <div class="col-without-padding">
                                <div id="datePicker"><span class="iconfont icon-calendar"></span>&nbsp;<span class="start">{$startDate}</span>&nbsp;~&nbsp;<span class="end">{$endDate}</span></div>
                                <input id="datePickerInput" value="">
                            </div>
                        </div>
                    </div>
                    <div class="border-box">
                        <div class="row">
                            <input id="filterMobile" class="form-control" type="text" autocomplete="off" placeholder="手机号/名称" maxlength="11" value="" />
                        </div>
                    </div> 
                    <div class="btn-sm btn-accent btn-raised" id="filterSearch">查询</div>
                    <div style="clear: both;"></div>
                </div>
                <div class="content-panel" id="filterResult">
                    <include file="zh_cn:Public:Include_content_loading" loading-container-id="loading" />
                    <div class="content-panel-body">
                        <table class="table content-panel-table vertical-margin">
                            <thead>
                                <tr>
                                    <th>姓名</th>
                                    <th>手机号码</th>
                                    <th>身份证</th>
                                    <th>入住时间</th>
                                    <th>入住时长</th>
                                    <th>入住次数</th>
                                    <th>消费总额</th>
                                    <th>操作</th>
                                </tr>
                            </thead>
                            <tbody id="customerListBody">
                            </tbody>
                        </table>
                        <div id="customerListBodyEmpty" class="typo-text-black-light typo-subhead">没有找到符合该条件的客人信息</div>
                    </div>
                    <div id="customerListPage" class="content-panel-footer hidden">
                        <div class="pull-right">
                            <ul class="pagination pagination-sm"></ul>
                        </div>
                        <div class="pull-right content-panel-pagination-info">
                            共有&nbsp;<span class="text-accent page-total"></span>&nbsp;条记录，总页数：&nbsp;<span class="text-accent page-count"></span>
                        </div>
                    </div>
                </div>	
            </div>
            <!--end of doc-center-->
        </div>
        <!--end of doc body-->
    </div>        
    <div class="modal fade" id="derivedFormModal">
        <div class="modal-dialog" role="document">
            <div class="modal-content">
                <div class="modal-header">
                    <button type="button" class="btn close" data-dismiss="modal"><span>&times;</span></button>
                    <h4 class="modal-title">导出身份证信息</h4>
                </div>
                <div class="modal-body">
                    <h5>导出客人信息日期范围：</h5>
                    <div class="date-content">
                        <input type="text" value="" id="dpd1">
                        <div class="divider-line">----</div>
                        <input type="text" value="" id="dpd2">                      
                    </div>
                    <div class="clause-content">
                    	<p>使用条款：</p>
                        <p>1、美住已对信息进行加密存储，不会造成信息泄露。</p>
                        <p>2、对于导出后造成的信息泄露等问题美住不负责任。</p>
                        <p>3、该数据仅可用作公安系统报备使用，导出格式如下：</p>
                    </div>
                    <div class="img-content">
                    	<img src="/Public/dist/Home/PublicPage/image/form_ch.png"/>
                    </div>
                </div>
                <div class="modal-footer">
                    <div class="checkbox-content">
                        <input type="checkbox" name="" id="derivedCheckout" value=""/ checked="checked">
                    	同意条款
                    </div>
                    <button type="button" class="btn-primary btn-raised ulite-js-btn ulite-js-ripple-effect leading-out submitForm">导出</button>
                </div>
            </div>
        </div>
   </div>
    <!--end of doc-->
    <!--js要用到的模板-->
    <script type="text/html" id="templatePage">
        <li>
            <a href="javascript:void(0);"></a>
        </li>
    </script>
    <script type="text/html" id="templateCustomer">
        <tr>
            <td class="col-xs-1">
                <div class="customer-name"></div>
            </td>
            <td class="col-xs-1">
                <div class="customer-mobile"></div>
            </td>
            <td class="col-xs-2">
                <div class="customer-identity"></div>
            </td>
            <td class="col-xs-1">
                <div class="checkIn-time"></div>
            </td>
            <td class="col-xs-1">
                <div class="checkIn-duration"></div>
            </td>
            <td class="col-xs-1">
                <div class="customer-time"></div>
            </td>
            <td class="col-xs-2">
                <div class="customer-total"></div>
            </td>
            <td class="col-xs-1">
                <div class="btn-link customer-details">客人详情</div>
            </td>
        </tr>
    </script>
    <!--身份认证模态框-->
    <include file="zh_cn:Public:Include_authentication_modal" />
	
</block>
<block name="extendFootJs">
    <script type="text/javascript" src="/Public/dist/Home/common_control.js?rev=d2d95b4bdc49c83470f104e88d8458fd"></script>
    <script type="text/javascript" src="__PUBLIC__/jslib/moment.js/2.9.0/moment.min.js"></script>
    <script type="text/javascript" src="__PUBLIC__/jslib/bootstrap-daterangepicker/daterangepicker.js"></script>
    <script type="text/javascript" src="__PUBLIC__/jslib/datepicker/js/foundation-datepicker.js"></script>
    <script type="text/javascript" src="/Public/dist/Home/CustomerPage/index.js?rev=461cd76c2ca5cab31c0a8a9552c5a2329"></script>
</block>
